

typedef struct
{ int x;
  int y;
 
  BITMAP * img_right[3];
  BITMAP * img_left[3];
}Personnage;

typedef struct 
{int x,y;
BITMAP * bonus;

int vie;
}Vies;


typedef struct 
{
int x,y;
BITMAP*image;

}Obstacles;


int collision_bonus(Personnage p, Vies v);
int collision_obstacle(Personnage p, Obstacles o);
void compter_score(BITMAP *Buffer,Personnage p);
void compter_vie(BITMAP *Buffer,Personnage p,Obstacles o,Vies v);

